/* ==========================================
   PRODUCT PAGES CSS
   ========================================== */

/* Page Hero Banner */
.page-hero {
    background: linear-gradient(135deg, #3a5a40 0%, #588157 100%);
    padding: 80px 40px;
    text-align: center;
}

.page-hero .breadcrumb {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    margin-bottom: 16px;
}

.page-hero h1 {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
}

.page-hero p {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
}

/* Old center heading (kept for compatibility) */
.center-heading {
    text-align: center;
    padding: 60px 40px 20px;
    background: #fff;
}

.animated-heading {
    font-size: 38px;
    font-weight: 700;
    color: #1a2e1c;
    margin-bottom: 10px;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Main */
main {
    padding: 40px;
    background: #faf9f7;
    min-height: 60vh;
}

/* Product Section */
.product {
    background: #fff;
    border: 1px solid #e8e4dd;
    border-radius: 16px;
    margin-bottom: 24px;
    padding: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
    position: relative;
}

.product:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}

.product h2 {
    flex: 1 1 100%;
    font-size: 22px;
    font-weight: 700;
    color: #1a2e1c;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e8e4dd;
}

.product-details {
    display: flex;
    gap: 32px;
    width: 100%;
    flex-wrap: wrap;
}

.product-image {
    flex: 0 0 220px;
    border-radius: 12px;
    overflow: hidden;
    max-height: 220px;
}

.product-image img,
.product-details > img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
    transition: transform 0.4s ease;
}

.product:hover .product-image img,
.product:hover .product-details > img {
    transform: scale(1.04);
}

.details {
    flex: 1;
    min-width: 200px;
}

.details table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
    font-size: 14px;
}

.details th,
.details td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #f0ede6;
    color: #3d5a3e;
}

.details th {
    width: 35%;
    background: #f4f7f4;
    font-weight: 600;
    color: #1a2e1c;
    font-size: 13px;
}

.details td {
    font-weight: 500;
    color: #4a5e4b;
}

.details p {
    font-size: 14.5px;
    color: #6b7f6d;
    line-height: 1.75;
    margin-bottom: 16px;
}

.additional-info {
    margin-top: 14px;
    background: #faf9f7;
    border: 1px solid #e8e4dd;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
}

.additional-info > p {
    font-size: 13px;
    font-weight: 700;
    color: #1a2e1c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.additional-info ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.additional-info ul li {
    font-size: 13.5px;
    color: #4a5e4b;
    padding-left: 18px;
    position: relative;
}
.additional-info ul li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: #588157;
    font-weight: 700;
}

/* CTA Button */
.btn {
    display: inline-block;
    background: #3a5a40;
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
    box-shadow: 0 3px 12px rgba(58,90,64,0.3);
}

.btn:hover {
    background: #588157;
    box-shadow: 0 5px 18px rgba(58,90,64,0.45);
    transform: translateY(-2px);
}

/* Absolute positioned button (second definition - override) */
.product > .details .btn {
    position: static;
}

.mobile-btn {
    display: none;
    margin-top: 12px;
    padding: 12px 24px;
    background: #3a5a40;
    color: #fff;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    width: 100%;
    box-shadow: 0 3px 12px rgba(58,90,64,0.3);
}

@media (max-width: 768px) {
    main { padding: 20px; }

    .product { padding: 20px; gap: 0; flex-direction: column; }
    .product-details { flex-direction: column; gap: 16px; }

    .product-details > img,
    .product-image,
    .product-image img {
        width: 100%;
        height: 200px;
        flex: none;
        max-height: 200px;
    }

    .details table { font-size: 13px; }

    .btn {
        position: static;
        display: block;
        text-align: center;
        width: 100%;
        margin-top: 12px;
        border-radius: 30px;
        padding: 14px;
    }

    .mobile-btn { display: block; }
    .page-hero { padding: 60px 20px; }
    .page-hero h1 { font-size: 32px; }
    .center-heading { padding: 40px 20px 10px; }
    .animated-heading { font-size: 28px; }
}
